package com.itheima.demo.Demo06;

public class MyThreadCS {
    public static void main(String[] args) {
     MyThread me=new MyThread();
     Thread t=new Thread(me,"小明");
        System.out.println("start");
        t.start();
        for (int i = 0; i <30 ; i++) {
            System.out.println("老王"+" "+i);
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("end");

    }
}
